#include "position/Position.h"
#include "cell/Cell.h"
#include "position/Direction.h"
#include "world/Neighbor.h"
#include "world/WorldSize.h"

Position::Position()
    : index(0), col(0), arival(0)
{

}

Position::Position(int index, const WorldSize& size)
    : index(index), col(size.getCol()), arival(0)
{
    int row = size.getRow();
#include "position/CheckArivalMacro.h"
#include "position/PositionMacro.h"
}

bool Position::isEndl() const
{
    return ((index + 1)%col) == 0;
}

int Position::getIndex() const
{
    return index;
}

int Position::getCol() const
{
    return col;
}

ArivalMap Position::getArivalMap() const
{
    return arival;
}
